package com.eureka.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: RibbonTestController
 * @Author: ZhangYue26
 * @Description: 测试Ribbon整合RestTemplate负载均衡
 * @Date: 2021-01-09
 */
@RestController
public class RibbonTestController {

    @GetMapping("/test")
    public String test(@RequestParam(name = "name", required = false, defaultValue = "eureka-server-colony-2模块-服务2") String name) {
        return name;
    }


}
